<include file="public@header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="#">套餐列表</a></li>
        <li><a href="{:url('setmeal/add')}">添加套餐</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="post" action="{:url('setmeal/index')}">
        套餐名称:
        <input type="text" class="form-control" name="set_name" style="width: 120px;" value="{:input('request.set_name/s','')}" placeholder="套餐名称">
        <input type="submit" class="btn btn-primary" value="搜索" />
        <a class="btn btn-danger" href="{:url('setmeal/index')}">清空</a>
    </form>
    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th width="50">序号</th>
            <th>套餐名称</th>
            <th >套餐ID</th>
            <th>原价</th>
            <th>会员价</th>
            <th>库存</th>
            <th>状态</th>
            <th>添加时间</th>
            <th width="130">{:lang('ACTIONS')}</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="data" item="data" key="k">
            <tr>
                <td>{$k+1}</td>
                <td>{$data['set_name']}</td>
                <td>{$data['id']}</td>
                <td>{$data['set_price']}</td>
                <td>{$data['set_prices']}</td>
                <td>{$data['number']}</td>
                <td>{$data['status_name']}</td>
                <td>{$data['c_time']|date="Y-m-d H:i:s",###}</td>
                <td><a  href="{:url('setmeal/detail',array('id'=>$data['id']))}">修改</a>&nbsp;<a class="js-ajax-delete" href="{:url('setmeal/del',array('id'=>$data['id']))}">删除</a></td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="pagination">{$page}</div>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>